package top.lishuoboy.mybatisp.bean;

import lombok.Data;
import lombok.experimental.Accessors;
import mybatis.mate.annotation.FieldSensitive;
import mybatis.mate.strategy.SensitiveType;

/** 测试字段脱敏 */
@Data
@Accessors(chain = true)
public class UserSensitive {
    private Integer id;
    @FieldSensitive(SensitiveType.chineseName)
    private String chineseName;
    @FieldSensitive(SensitiveType.idCard)
    private String idCard;
    @FieldSensitive(SensitiveType.phone)
    private String phone;
    @FieldSensitive(SensitiveType.mobile)
    private String mobile;
    @FieldSensitive(SensitiveType.address)
    private String address;
    @FieldSensitive(SensitiveType.email)
    private String email;
    @FieldSensitive(SensitiveType.bankCard)
    private String bankCard;
    @FieldSensitive(SensitiveType.password)
    private String password;
    @FieldSensitive(SensitiveType.carNumber)
    private String carNumber;
}